<div class="body-top">
	<div id="body-navigation">
		<div id="navcontainer-body">
			<ul class="navlist-body">
				<li><a href="./hallofcool.php">Hall of Cool Home</a></li>
				<li><a href="./fedimport.php">Federation Import</a></li>
				<li class="active"><a href="./leagueimport.php">League Import</a></li>
			</ul>
		</div>
	</div>
	
	<div class="hoc-form">{$introduction}</div>
	
{if $loggedIn == true}
	<div class="hoc-form">
		<form action="{$action}" method="post" name="fetch">
			<div class="hoc-form-left" style="float:none">
				<div id="countries">
					<div class="select-title">Country:</div>
					<select name="select_countries" class="select-box" id="select_countries" onchange="showDivisions(this.value, 'import')">
						<option value="0">Choose a country...</option>
						{foreach from=$countries item=country name=countries_loop}
						<option value="{$country->getCountryID()}" {if $country->getCountryID() == $selected_country}selected="selected"{/if}>{$country->getName()}</option>
						{/foreach}
					</select>
				</div>
				{include file="hoc/select_divisions_import.tpl" divisions=$divisions selected_division=$selected_division leagues=$leagues selected_league=$selected_league}
    		</div>
    		
    		<input name="hidden" type="hidden" value="fetch"></input>
    		<input type="submit" class="fetch" style="margin-left:180px" value="Fetch" alt="Fetch"></input>
    	</form>
    </div>
    {if $error !== null}
		<div class="error-message"><p>{$error}</p></div>
	{/if}
	{if $info !== null}
		<div class="info-message"><p>{$info}</p></div>
	{/if}
{else}
	<div class="info-message"><p>Login with your Hattrick username and security code above to import/update a league!</p></div>
{/if}
</div>